#pragma once
#include "ThreadCache.h"

class ConcurrentAlloc
{
public:
	static void* ConncurrentAll(size_t size)
	{
		assert(size < MAX_BYTES);
		if (PTLThreadCache == nullptr)
		{
			PTLThreadCache = new ThreadCache;
		}
		PTLThreadCache->Allocate(size);
	}
	static void Deallocate(void* obj, size_t size)
	{
		assert(PTLThreadCache);
		PTLThreadCache->Deallocate(obj, size);
	}
private:
};